/**
 * ...
 * @author Thot
 */

function StartApplicationCommand(){}; 
POO.extend( StartApplicationCommand, Command );



StartApplicationCommand.prototype.execute = function( p_notificationType, p_data )
{
	var mapmediator 	= new MapMediator(document.getElementById("uiContainer"));
	var appproxy 		= new ApplicationProxy();
	var texproxy		= new TextureProxy();
	var animProxy		= new AnimationProxy();
	var mapProxy		= new MapProxy();
	var geProxy			= new GameEventProxy();
	
	ApplicationFacade.getInstance().registerMediator( MapMediator.NAME, mapmediator );
	ApplicationFacade.getInstance().registerProxy( AnimationProxy.NAME, animProxy );
	ApplicationFacade.getInstance().registerProxy( TextureProxy.NAME, texproxy );
	ApplicationFacade.getInstance().registerProxy( ApplicationProxy.NAME, appproxy );
	ApplicationFacade.getInstance().registerProxy( MapProxy.NAME, mapProxy );
	
	
	ApplicationFacade.getInstance().sendNotification( ApplicationNotification.LOAD_PROJECT, './assets/projects/google.js' );
	
};